#include <stdio.h>
#include "common.h"
#include <dlfcn.h>

int main(void)
{
    void* phandle = dlopen("./libsubb.so", RTLD_NOW | RTLD_LOCAL);
    void* psym = dlsym(phandle, "fa");
    printf("phandle = %p, psym = %p\n", phandle, psym);
    printf("dlerror = %s\n", dlerror());
    dlclose(phandle);

    return 0;
}
